package com.github.nacostwo.repository;

import com.github.nacostwo.entity.EsBook;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;


public interface EsBookRepository extends ElasticsearchRepository<EsBook, String>{

    Page<EsBook> findByName(String name, Pageable pageable);
}
